'''
Created on 2014年9月4日

@author: loseair123
'''
# 总类
class Animal(object):
    pass

# 大类:
class Mammal(Animal):
    def pregnant(self):
        print('pregnant...')



class Bird(Animal):
    def layEggs(self):
        print('layEggs...')

#跑和飞
class Runnable(object):
    def run(self):
        print('Running...')

class Flyable(object):
    def fly(self):
        print('Flying...')

#各种动物        
class Dog(Mammal, Runnable):
    pass

class Carrot(Bird,Flyable):
    pass

dog=Dog()
carrot=Carrot()
dog.pregnant()
dog.run()
carrot.layEggs()
carrot.fly()